import { Component } from '@angular/core';
import {DomSanitizer} from "@angular/platform-browser";
@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {

   token:any = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODIzNjE0MzMsInVzZXJfbmFtZSI6IjExODc3IiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9JT1BfVVNFUl9BRE1JTiIsIlJPTEVfQURNSU4iLCJST0xFX2l0LWhlbHBkZXNrIl0sImp0aSI6Ijk0MmVkYjg3MTI3ODQ3NzFhNGQ0ODI0OTZlMDJhYzQ3IiwiY2xpZW50X2lkIjoiaXQtaGVscGRlc2siLCJzY29wZSI6WyJyZWFkIl19.a8QPM1Vgt4XfT42kXoLG8BsL2ijTrG-FzfKvIR27myU';
   API_URL:any = 'http://stock-zuul.devapps.ocp.csvw.com';
   url:any ='';
  constructor( public domSanitizer: DomSanitizer) {
 
	   this.url = this.domSanitizer.bypassSecurityTrustResourceUrl(this.API_URL+'/web/view-report?access_token='+this.token+'&frameId=frameKpi&pageName=iop-kpi');
  
       console.log('##url:'+this.url);
  }
	
}
